package com.visualexpress.messager.email;

import javax.mail.MessagingException;
import javax.mail.internet.AddressException;
import javax.mail.internet.MimeMultipart;
public class MailNotify {
	public static void sendNotifyMail(ConstructMail mail, String to) throws AddressException, MessagingException {
		MimeMultipart mp = mail.constructMailBody();
		String subject = mail.constructSubject();
		MailSender.getInstance().sendMail(subject, mp, to);
	}
}
